package cn.sc.allinpay.allfavour.business.member;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.google.zxing.integration.android.IntentIntegrator;
import com.google.zxing.integration.android.IntentResult;

import cn.pai.mvp.intervenor.Intervenor;
import cn.pai.mvp.presenter.PaiPresenter;
import cn.sc.allinpay.allfavour.app.Constant;

/**
 * 扫码 presenter
 * author：pany
 * on 2017/12/1 11:27
 */
public class MemberPresenter extends PaiPresenter<MemberContract.View> implements MemberContract.Presenter {

    @Override
    public void start() {

    }

    @Override
    public void setResultActivity(String code) {
        Bundle bundle = new Bundle();
        bundle.putString(Constant.BundleKey.SCAN_CODE,code);
        view.setResult(Activity.RESULT_OK,bundle);
        view.finish();
    }
}
